<template>
  <div class="container"></div>
</template>

<script lang="js">

export default {
  data() {
    return {
    }
  },
  methods: {
  },
  mounted() {
    let token = localStorage.getItem('token');
    if (token == 'null' || token == null || token == undefined) {
      this.$router.push('/login');
    } else {
      this.$router.push('/home');
    }
    // ios 页面禁用缩放 -- 待测 -------------
    document.addEventListener('touchstart', function(event) {
    if (event.touches.length > 1) {
      event.preventDefault()
    }
    })
    
    document.addEventListener('gesturestart', function(event) {
    event.preventDefault()
    // ------------
 })
  },
  computed: {},
}
</script>
<style scoped lang="scss"></style>
